<!DOCTYPE html>
<html lang="en"> 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文文</title>
</head>
<body>
    <div class="todo-app">
        <div class="title">文泓发的todo list</div>
        <div class="todo-form">
            <input type="text" class="todo-input" placeholder="请输入待办事项">
            <div class="todo-button">add todo </div>
        </div>
        <!-- 待办事项列表区域 -->
        <div class="todo-list">
            <div class="item completed">
            <div>
                <input type="checkbox" />
                <span class="name">吃饭</span>
            </div>
                <div class="del">del</div>
            </div>
     <div class="item">
            <div>
                <input type="checkbox" />
                <span class="name">吃饭</span>
            </div>
                <div class="del">del</div>
            </div>
     <div class="item">
            <div>
                <input type="checkbox" />
                <span class="name">吃饭</span>
            </div>
                <div class="del">del</div>
            </div>



        </div>



    <style>
        .completed {
            text-decoration: line-through;
            color: #888;
            opacity: 0.4;
        }
        .del {
            width: 40px;
            height: 25px;
            background-color: #f33;
            color: white;
            border-radius: 5px;
            text-align: center;
            line-height: 25px;
            cursor: pointer; 
        }
        .item {
            line-height: 40px;
            display: flex;
            align-items: center; /* 垂直居中内容 */
            box-sizing: border-box;
            justify-content: space-between;
            padding: 12px 15px; /* 增加内边距 */
            width: 90%; /* 调整宽度 */
            min-height: 50px; /* 最小高度，避免内容过挤 */
            border-bottom: 1px solid #e0e0e0; /* 稍浅的边框 */
            margin: 8px auto; /* 增加上下间距 */
            border-radius: 8px; /* 圆角效果 */
            background-color: #f9f9f9; /* 浅色背景 */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 更柔和的阴影 */
            transition: all 0.2s ease; /* 过渡动画 */
        }

        /* 鼠标悬停效果 */
        .item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            transform: translateY(-1px);
        }
        
        .todo-button {
            width: 120px;
            height: 40px;
            background-color: #336af7;
            color: white;
            border-radius: 5px;
            text-align: center;
            line-height: 40px;
            margin-left: 10px;
            margin-right: 40px;
            cursor: pointer; 
            border-radius: 0 20px 20px 0;
        }
        
        .todo-input {
            flex: 1.2;
            height: 30px;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 5px;
            font-size: 16px;
            width: 80%;
        }
        
        .todo-form {
            display: flex;
            margin-top: 20px; 
            margin-left: 30px;
            margin-right: 30px;
            margin-bottom: 20px; /* 增加底部间距，与下方条目分隔 */
        }
        
        body {
            background:linear-gradient(to right, #af1a1a, #336af7);
        }
        
        .todo-app {
            width: 98%;
            min-height: 300px; /* 改为最小高度，方便内容扩展 */
            background-color: white;
            border-radius: 5px;
            margin-top: 40px;
            margin-left: 1%;
            padding-bottom: 20px; /* 底部内边距 */
        }
        
        .title {
            font-size: 24px;
            font-weight: 700;
            text-align: center;
            padding: 10px;
        }
        
        .todo-list {
            width: 100%;
        }
    </style>
</body>
</html>